package com.example.publish_module.publish;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.launcher.ARouter;
import com.example.common.entity.BaseEntity;
import com.example.common.mvvm.viewmodel.BaseViewModel;
import com.example.common.prowviderservice.CheckLoginApi;

public class PublishViewModel extends BaseViewModel<PublishModel> {

    @Autowired
    CheckLoginApi checkLoginApi;

    @Override
    public void onResult(BaseEntity entity) {

    }

    @Override
    protected void initData() {
        ARouter.getInstance().inject(this);
        if (checkLoginApi.checkLogin()){

        }else{
            ARouter.getInstance().build("/user/loginactivity").navigation();
            return;
        }
    }
}
